package itcast.service;


import itcast.mapper.UserMapper;
import itcast.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryUserById(Long id) throws InterruptedException {
     // Thread.sleep(new Random().nextInt(2000));
        return userMapper.selectByPrimaryKey(id);
    }
}
